import { request } from '@pkg/request/src';
export enum Api {
  page = '/version/page',
  list = '/version/list',
  get = '/version/get',
  add = '/version/save',
  update = '/version/update',
  remove = '/version/delete',
}

export const add = (params) => {
  return request.post({url: Api.add, params: params}, {errorMessageMode: 'none'});
}

export const update = (params) =>
  request.post({url: Api.update, params: params}, {errorMessageMode: 'none'});

export const remove = (ids: string) =>
  request.post({url: Api.remove, params: {ids: ids}}, {errorMessageMode: 'none'});
